package com.example.trackcircuitdiagnosis.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.trackcircuitdiagnosis.dto.TrackDTO;
import com.example.trackcircuitdiagnosis.entity.TrackEntity;
import com.example.trackcircuitdiagnosis.mapper.TrackMapper;
import com.example.trackcircuitdiagnosis.service.TrackSerivce;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TrackServiceImpl extends ServiceImpl<TrackMapper, TrackEntity> implements TrackSerivce {

    @Autowired
    private TrackMapper trackMapper;

    @Override
    public List<TrackDTO> getTracksWithAreasAndDevices() {
        return trackMapper.getTracksWithAreasAndDevices();
    }

}